package db

const TableNameInvestmentCenter = TablePrefix + "investment_center"

type InvestmentCenter struct {
	BaseModel
	TypeID uint  `gorm:"column:type_id;type:int(11);default:0;comment:类型id" json:"type_id" form:"type_id"` // 类型id
	Num    int64 `gorm:"column:num;type:bigint(20);default:0;comment:数量" json:"num" form:"num"`            // 数量
}

func (*InvestmentCenter) TableName() string {
	return TableNameInvestmentCenter
}

type InvestmentCenterHasOneType struct {
	InvestmentCenter
	Types Type `gorm:"foreignKey:id;references:TypeID" json:"types"`
}
